<?php

class DjField {

    /**
     * converts from DataBase to PHP
     * @param mixed $value
     * @return mixed
     */
    public function toPhp($value) {

    }

    /**
     * converts from  PHP to DataBase
     * @param mixed $value
     * @return mixed
     */
    public function toDb($value) {

    }
}